package com.yincb;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class EmpTest {

    public static void main(String[] args) {

        AnnotationConfigApplicationContext applicationContext
                = new AnnotationConfigApplicationContext(MainConfig.class);

        EmpDao empDao = applicationContext.getBean(EmpDao.class);
        Emp emp = new Emp();
        emp.setEmpno("33");
        emp.setEname("XAZ");
        empDao.updateByAnnotation(emp);

    }

}
